/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question1.polymophism.polymophismConfig;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.dcpApplication.question1.polymophism.LoanInterest;
import za.ac.cput.dcpApplication.question1.polymophism.smallBussinessImpl.SmallBusinessImpl;
import za.ac.cput.dcpApplication.question1.polymophism.studentImpl.UnderGrad;

/**
 *
 * @author spheshie
 */
@Configurable
public class PolymophismConfig {
    
    @Bean(name = "busnss")
    public LoanInterest loanbusiness(){
        return new SmallBusinessImpl();
    }
    
    @Bean(name = "undergrad")
    public LoanInterest loanstud() {
        return new UnderGrad();
    }
}
